<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: AudioManager类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_audio_manager-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">AudioManager类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>音频管理  
 <a href="class_audio_manager.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_audio_manager_8h_source.html">AudioManager.h</a>&gt;</code></p>
<div class="dynheader">
类 AudioManager 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_audio_manager.png" usemap="#AudioManager_map" alt=""/>
  <map id="AudioManager_map" name="AudioManager_map">
<area href="class_singleton.html" alt="Singleton&lt; AudioManager &gt;" shape="rect" coords="0,56,172,80"/>
<area href="class_non_copyable.html" title="不可拷贝对象的基类" alt="NonCopyable" shape="rect" coords="0,0,172,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:afec243f3a03a83c5ff281865d58cc233"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#afec243f3a03a83c5ff281865d58cc233">loadAudio</a> (const std::wstring &amp;file_path)</td></tr>
<tr class="memdesc:afec243f3a03a83c5ff281865d58cc233"><td class="mdescLeft">&#160;</td><td class="mdescRight">加载音乐  <a href="#afec243f3a03a83c5ff281865d58cc233">更多...</a><br /></td></tr>
<tr class="separator:afec243f3a03a83c5ff281865d58cc233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a134ff878a2069f12d12320ade67a20e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a134ff878a2069f12d12320ade67a20e2">unloadAudio</a> (int id)</td></tr>
<tr class="memdesc:a134ff878a2069f12d12320ade67a20e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">卸载音频  <a href="#a134ff878a2069f12d12320ade67a20e2">更多...</a><br /></td></tr>
<tr class="separator:a134ff878a2069f12d12320ade67a20e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeac54ef0bb7b4f67a6837ef60ee5a16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#aeeac54ef0bb7b4f67a6837ef60ee5a16">unloadAllAudio</a> ()</td></tr>
<tr class="memdesc:aeeac54ef0bb7b4f67a6837ef60ee5a16"><td class="mdescLeft">&#160;</td><td class="mdescRight">卸载所有加载过的音频  <a href="#aeeac54ef0bb7b4f67a6837ef60ee5a16">更多...</a><br /></td></tr>
<tr class="separator:aeeac54ef0bb7b4f67a6837ef60ee5a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea379dcc3972149ee0a61677d8f031d9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#aea379dcc3972149ee0a61677d8f031d9">playAudio</a> (int id, bool is_loop=false)</td></tr>
<tr class="memdesc:aea379dcc3972149ee0a61677d8f031d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">播放音频  <a href="#aea379dcc3972149ee0a61677d8f031d9">更多...</a><br /></td></tr>
<tr class="separator:aea379dcc3972149ee0a61677d8f031d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28f3df98fc410f7373de25129c7b8b51"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a28f3df98fc410f7373de25129c7b8b51">stopAudio</a> (int id)</td></tr>
<tr class="memdesc:a28f3df98fc410f7373de25129c7b8b51"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止播放音频  <a href="#a28f3df98fc410f7373de25129c7b8b51">更多...</a><br /></td></tr>
<tr class="separator:a28f3df98fc410f7373de25129c7b8b51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d53f0f8e924abe04989c829affe8dea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a8d53f0f8e924abe04989c829affe8dea">pauseAudio</a> (int id)</td></tr>
<tr class="memdesc:a8d53f0f8e924abe04989c829affe8dea"><td class="mdescLeft">&#160;</td><td class="mdescRight">暂停音频  <a href="#a8d53f0f8e924abe04989c829affe8dea">更多...</a><br /></td></tr>
<tr class="separator:a8d53f0f8e924abe04989c829affe8dea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a312ad9a3a9618f669198c5d781b7b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a4a312ad9a3a9618f669198c5d781b7b3">resumeAudio</a> (int id)</td></tr>
<tr class="memdesc:a4a312ad9a3a9618f669198c5d781b7b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">恢复音频的播放，会从暂停的地方开始播放  <a href="#a4a312ad9a3a9618f669198c5d781b7b3">更多...</a><br /></td></tr>
<tr class="separator:a4a312ad9a3a9618f669198c5d781b7b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62a605cdb86d36a19ac015b0bf31ee7a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a62a605cdb86d36a19ac015b0bf31ee7a">isPlaying</a> (int id)</td></tr>
<tr class="memdesc:a62a605cdb86d36a19ac015b0bf31ee7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否正在播放  <a href="#a62a605cdb86d36a19ac015b0bf31ee7a">更多...</a><br /></td></tr>
<tr class="separator:a62a605cdb86d36a19ac015b0bf31ee7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a228e0b6ff88d32b099da57d85f3b3c2b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a228e0b6ff88d32b099da57d85f3b3c2b">pauseAllAudio</a> ()</td></tr>
<tr class="memdesc:a228e0b6ff88d32b099da57d85f3b3c2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">暂停所有正在播放的音频  <a href="#a228e0b6ff88d32b099da57d85f3b3c2b">更多...</a><br /></td></tr>
<tr class="separator:a228e0b6ff88d32b099da57d85f3b3c2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae78325975ddb0d302c41b0fc7faa495b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#ae78325975ddb0d302c41b0fc7faa495b">resumeAllAudio</a> ()</td></tr>
<tr class="memdesc:ae78325975ddb0d302c41b0fc7faa495b"><td class="mdescLeft">&#160;</td><td class="mdescRight">恢复所有正在播放的音频  <a href="#ae78325975ddb0d302c41b0fc7faa495b">更多...</a><br /></td></tr>
<tr class="separator:ae78325975ddb0d302c41b0fc7faa495b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3c700da578a2ec2c1e541fa4b36bfb9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#ae3c700da578a2ec2c1e541fa4b36bfb9">isValidId</a> (int id)</td></tr>
<tr class="memdesc:ae3c700da578a2ec2c1e541fa4b36bfb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Id 是否有效  <a href="#ae3c700da578a2ec2c1e541fa4b36bfb9">更多...</a><br /></td></tr>
<tr class="separator:ae3c700da578a2ec2c1e541fa4b36bfb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_non_copyable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_non_copyable')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_non_copyable.html">NonCopyable</a></td></tr>
<tr class="memitem:a501d34ffcc34b30de6d541887a901057 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="a501d34ffcc34b30de6d541887a901057"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NonCopyable</b> (const <a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;)=delete</td></tr>
<tr class="separator:a501d34ffcc34b30de6d541887a901057 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3e87997196c6c1abf6131246a5331e3 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="aa3e87997196c6c1abf6131246a5331e3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NonCopyable</b> (<a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:aa3e87997196c6c1abf6131246a5331e3 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3b97d1f1e22a24e59619f01c5f81ad9 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="ad3b97d1f1e22a24e59619f01c5f81ad9"></a>
<a class="el" href="class_non_copyable.html">NonCopyable</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;)=delete</td></tr>
<tr class="separator:ad3b97d1f1e22a24e59619f01c5f81ad9 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca1805bcfcb18eb044b585e69a18e1e0 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="aca1805bcfcb18eb044b585e69a18e1e0"></a>
<a class="el" href="class_non_copyable.html">NonCopyable</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:aca1805bcfcb18eb044b585e69a18e1e0 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_singleton"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_singleton')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_singleton.html">Singleton&lt; AudioManager &gt;</a></td></tr>
<tr class="memitem:ac7b8bd773889a70952cd00654e43bbe8 inherit pub_static_methods_class_singleton"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_audio_manager.html">AudioManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton.html#ac7b8bd773889a70952cd00654e43bbe8">getInstance</a> ()</td></tr>
<tr class="memdesc:ac7b8bd773889a70952cd00654e43bbe8 inherit pub_static_methods_class_singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取单例对象的实例  <a href="class_singleton.html#ac7b8bd773889a70952cd00654e43bbe8">更多...</a><br /></td></tr>
<tr class="separator:ac7b8bd773889a70952cd00654e43bbe8 inherit pub_static_methods_class_singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>音频管理 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a62a605cdb86d36a19ac015b0bf31ee7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62a605cdb86d36a19ac015b0bf31ee7a">&#9670;&nbsp;</a></span>isPlaying()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AudioManager::isPlaying </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否正在播放 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>id 音频Id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="ae3c700da578a2ec2c1e541fa4b36bfb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3c700da578a2ec2c1e541fa4b36bfb9">&#9670;&nbsp;</a></span>isValidId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AudioManager::isValidId </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Id 是否有效 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="afec243f3a03a83c5ff281865d58cc233"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afec243f3a03a83c5ff281865d58cc233">&#9670;&nbsp;</a></span>loadAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AudioManager::loadAudio </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>file_path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加载音乐 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::wstring &amp; file_path 音频文件的路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>int 音频的ID 一般在进入场景时进行 音频文件的加载 ，避免在游戏过程中加载音频 如果加载失败，返回的Id为 -1 </dd></dl>

</div>
</div>
<a id="a228e0b6ff88d32b099da57d85f3b3c2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a228e0b6ff88d32b099da57d85f3b3c2b">&#9670;&nbsp;</a></span>pauseAllAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioManager::pauseAllAudio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>暂停所有正在播放的音频 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a8d53f0f8e924abe04989c829affe8dea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d53f0f8e924abe04989c829affe8dea">&#9670;&nbsp;</a></span>pauseAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioManager::pauseAudio </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>暂停音频 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>id 音频ID </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="aea379dcc3972149ee0a61677d8f031d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea379dcc3972149ee0a61677d8f031d9">&#9670;&nbsp;</a></span>playAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AudioManager::playAudio </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>is_loop</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>播放音频 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>id 音频的Id </td></tr>
    <tr><td class="paramname">bool</td><td>is_loop 是否循环播放 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool 播放是否成功 ，如果ID的无效的，则会返回失败 </dd></dl>

</div>
</div>
<a id="ae78325975ddb0d302c41b0fc7faa495b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae78325975ddb0d302c41b0fc7faa495b">&#9670;&nbsp;</a></span>resumeAllAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioManager::resumeAllAudio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>恢复所有正在播放的音频 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a4a312ad9a3a9618f669198c5d781b7b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a312ad9a3a9618f669198c5d781b7b3">&#9670;&nbsp;</a></span>resumeAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioManager::resumeAudio </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>恢复音频的播放，会从暂停的地方开始播放 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>id 音频的ID </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a28f3df98fc410f7373de25129c7b8b51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28f3df98fc410f7373de25129c7b8b51">&#9670;&nbsp;</a></span>stopAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioManager::stopAudio </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>停止播放音频 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>id 音频ID </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="aeeac54ef0bb7b4f67a6837ef60ee5a16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeeac54ef0bb7b4f67a6837ef60ee5a16">&#9670;&nbsp;</a></span>unloadAllAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioManager::unloadAllAudio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>卸载所有加载过的音频 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a134ff878a2069f12d12320ade67a20e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a134ff878a2069f12d12320ade67a20e2">&#9670;&nbsp;</a></span>unloadAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioManager::unloadAudio </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>卸载音频 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>id 音频ID </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void</dd></dl>
<p>音频卸载后，Id 会变的失效，如果要播放，需要重新加载 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/audio/<a class="el" href="_audio_manager_8h_source.html">AudioManager.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
